package com.asus.open;

import java.io.Serializable;
import java.util.ArrayList;

public class Card implements Serializable {

    /**
     *
     */

    private static final long serialVersionUID = 1L;

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAttackpoint() {
        return attackpoint;
    }

    public void setAttackpoint(int attackpoint) {
        this.attackpoint = attackpoint;
    }

    public int getLifepoint() {
        return lifepoint;
    }

    public void setLifepoint(int lifepoint) {
        this.lifepoint = lifepoint;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    private int cost;
    private String name;
    private int attackpoint;
    private int lifepoint;
    private int id;
    private int drawable;

    public Card() {
    }

    public Card(int cost, int attackpoint, int lifepoint, String name, int id,
                int drawable) {
        this.cost = cost;
        this.name = name;
        this.attackpoint = attackpoint;
        this.lifepoint = lifepoint;
        this.id = id;
        this.setDrawable(drawable);
    }

    static final Card card1 = new Card(1, 0, 0, "̽�����¶�Ѩ", 1, R.drawable.daozei1);
    static final Card card2 = new Card(5, 0, 0, "ˮ������", 2, R.drawable.daozei2);
    static final Card card3 = new Card(4, 5, 3, "\"ʬħ��\"ɪ����", 3,
            R.drawable.daozei3);
    static final Card card4 = new Card(1, 0, 0, "���־���", 4, R.drawable.deluyi1);
    static final Card card5 = new Card(5, 8, 8, "���ɲ�˹", 5, R.drawable.deluyi2);
    static final Card card6 = new Card(10, 12, 12, "̩��ͼ˹", 6,
            R.drawable.deluyi3);
    static final Card card7 = new Card(1, 0, 0, "��ʱ��֮��", 7, R.drawable.fashi1);
    static final Card card8 = new Card(5, 0, 0, "ʱ��Ť��", 8, R.drawable.fashi2);
    static final Card card9 = new Card(2, 2, 2, "����˹", 9, R.drawable.fashi3);
    static final Card card10 = new Card(1, 0, 0, "����������", 10, R.drawable.mushi1);
    static final Card card11 = new Card(5, 8, 8, "ϣ���ػ��߰�����", 11,
            R.drawable.mushi2);
    static final Card card12 = new Card(5, 3, 5, "\"̫����Ƭ\"����", 12,
            R.drawable.mushi3);
    static final Card card13 = new Card(1, 0, 0, "�����ܶ�Ա", 13, R.drawable.saman1);
    static final Card card14 = new Card(5, 8, 8, "������", 14, R.drawable.saman2);
    static final Card card15 = new Card(8, 7, 7, "����֮������Ī˹", 15,
            R.drawable.saman3);
    static final Card card16 = new Card(1, 0, 0, "����ˮ����", 16,
            R.drawable.shenqishi1);
    static final Card card17 = new Card(5, 5, 5, "���ֶ�", 17,
            R.drawable.shenqishi2);
    static final Card card18 = new Card(6, 3, 7, "����������ķ", 18,
            R.drawable.shenqishi3);
    static final Card card19 = new Card(1, 0, 0, "�������׼�", 19,
            R.drawable.shushi1);
    static final Card card20 = new Card(5, 0, 0, "��մ�����", 20,
            R.drawable.shushi2);
    static final Card card21 = new Card(2, 2, 2, "����˹Ů��", 21,
            R.drawable.shushi3);
    static final Card card22 = new Card(1, 0, 0, "����֮��", 22,
            R.drawable.zhanshi1);
    static final Card card23 = new Card(4, 4, 2, "������˹", 23,
            R.drawable.zhanshi2);
    static final Card card24 = new Card(9, 9, 7, "����֮��Ħʲ", 24,
            R.drawable.zhanshi3);
    static final Card card25 = new Card(1, 0, 0, "ʪ��Ů��", 25, R.drawable.lieren1);
    static final Card card26 = new Card(5, 8, 8, "����ɯŮ��", 26,
            R.drawable.lieren2);
    static final Card card27 = new Card(7, 9, 9, "����֮������", 27,
            R.drawable.lieren3);
    static final Card card28 = new Card(5, 5, 5, "\"������\"����˹", 28,
            R.drawable.zhongli1);
    static final Card card29 = new Card(9, 5, 5, "ŷ��³��", 29,
            R.drawable.zhongli2);
    static final Card card30 = new Card(4, 3, 3, "����˹", 30, R.drawable.zhongli3);

    public static ArrayList<Card> getCards() {
        ArrayList<Card> list = new ArrayList<Card>();
        list.add(card1);
        list.add(card2);
        list.add(card3);
        list.add(card4);
        list.add(card5);
        list.add(card6);
        list.add(card7);
        list.add(card8);
        list.add(card9);
        list.add(card10);
        list.add(card11);
        list.add(card12);
        list.add(card13);
        list.add(card14);
        list.add(card15);
        list.add(card16);
        list.add(card17);
        list.add(card18);
        list.add(card19);
        list.add(card20);
        list.add(card21);
        list.add(card22);
        list.add(card23);
        list.add(card24);
        list.add(card25);
        list.add(card26);
        list.add(card27);
        list.add(card28);
        list.add(card29);
        list.add(card30);

        return list;
    }

    @Override
    public String toString() {
        return "Card [cost=" + cost + ", name=" + name + ", attackpoint="
                + attackpoint + ", lifepoint=" + lifepoint + ", id=" + id + "]";
    }

    public int getDrawable() {
        return drawable;
    }

    public void setDrawable(int drawable) {
        this.drawable = drawable;
    }

}
